export function delay(ms: number = 200) {
  return new Promise((resolve) => {
    let timer = setTimeout(() => {
      resolve(timer);
      clearTimeout(timer);
    }, ms);
  });
}
